package cn.bdqn.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.beans.factory.annotation.Value;

import javax.validation.constraints.NotEmpty;
import java.util.Date;

/**
 * @ProjectName: ycbdqn
 * @Package: cn.bdqn.entity
 * @Author: huat
 * @Date: 2020/2/29 22:36
 * @Version: 1.0
 */

@Setter
@Getter
public class SwiperImage {
    private int id;//主键
    private String imageUrl; //图片地址
    @JsonFormat(pattern =  "yyyy年MM月dd日 HH:mm:ss")
    private Date createTime; //创建时间
    private Integer isEnabled; //是否启用
    @NotEmpty(message = "活动名称不能为空")
    private String swiperName;//活动名称
    @NotEmpty(message = "活动详情不能为空")
    private String swiperDetails;//活动详情
}
